﻿using Microsoft.Extensions.Options;
using Orleans.Configuration;
using System;
using System.Collections.Generic;
using System.Text;

namespace IOP.Orleans.Server
{
    public class ServerHostOptions : IOptions<ServerHostOptions>
    {
        /// <summary>
        /// 集群配置
        /// </summary>
        public ClusterOptions Cluster { get; set; }
        /// <summary>
        /// 端点配置
        /// </summary>
        public EndpointOptions Endpoint { get; set; }
        /// <summary>
        /// 集群提供者
        /// </summary>
        public string ClusterProvider { get; set; }
        /// <summary>
        /// 数据库集群提供者配置
        /// </summary>
        public AdoNetClusteringSiloOptions AdoNetClustering { get; set; } 
        /// <summary>
        /// 值
        /// </summary>
        public ServerHostOptions Value => this;
    }
}
